package com.zjzywl.smoke.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zjzywl.smoke.repository.DeviceFocusRepository;
import com.zjzywl.smoke.util.WebResult;
import com.zjzywl.smoke.entity.DeviceFocus;

@RestController
@RequestMapping(value = "/devicefocus")
public class DeviceFocusController extends BaseController {

	@Autowired
	private DeviceFocusRepository repository;

	@RequestMapping(value = "/data/list")
	public WebResult getData() {
		List<DeviceFocus> devFocus = repository.findAll();

		return WebResult.OK(devFocus);
	}
}
